package veilingsite.beans.nl;

import java.sql.Timestamp;

public class BodBean extends BaseBean {
	private double bod;
	private Timestamp datum;
	private VeilingBean veilingBean;
	private int veilingId;
	private int biederId;
	private String biederNaam;
	private String veilingNaam;
	
	public double getBod(){ return bod;	}
	public Timestamp getDatum(){ return datum; }
	public int getVeilingId(){ return veilingId;}
	public int getBiederId(){ return biederId; }
	public String getBiederNaam(){ return biederNaam; }
	public String getVeilingNaam(){ return veilingNaam; }
	public VeilingBean getVeilingBean(){ return veilingBean; }
	
	public void setBod(double newBod){ bod=newBod; }
	public void setDatum(Timestamp newTimestamp){ datum = newTimestamp; }
	public void setVeilingId(int newVeilingId){ veilingId = newVeilingId; }
	public void setBiederId(int newBiederId){ biederId = newBiederId; }
	public void setBiederNaam(String newNaam){ biederNaam = newNaam;}
	public void setVeilingNaam(String newVeilingNaam) { veilingNaam = newVeilingNaam; }
	public void setVeilingBean(VeilingBean newVeilingBean) { veilingBean = newVeilingBean; }
	
	public BodBean(){
		super();
	}
	
	public void setAll(double bod, Timestamp datum, int veilingId, int biederId,
			String biederNaam, String veilingNaam){
		this.bod=bod;
		this.datum=datum;
		this.veilingId=veilingId;
		this.biederId=biederId;
		this.biederNaam=biederNaam;
		this.veilingNaam=veilingNaam;
	}

	public String getFormattedBod(){
		return formatDouble(bod);
	}
	
	public String getFormattedDatum(){
		return formatTimestamp(datum);
	}
}
